package library.GameLoader
{
	public class LoaderItemInfo
	{
		
		private var _path:String = null;
		private var _compuleteFunArray:Array = new Array();
		
		public function LoaderItemInfo(path:String)
		{
			_path = path;
		}
		
		public function appendCompuleteFun(fun:Function):void
		{
			for(var i:int=0;i<_compuleteFunArray.length;i++)
			{
				if(fun == _compuleteFunArray[i])
					return;
			}
			_compuleteFunArray.push(fun);
		}
		
		public function callCompuleteFun(obj:*,path:String):void
		{
			for(var i:int =0;i<_compuleteFunArray.length;i++)
			{
				_compuleteFunArray[i](obj,path);
			}
		}
	}
}